﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WebDemo.Data;
using WebDemo.Domain;
using WebDemo.Filters;

namespace WebDemo.Areas.GPS.Controllers
{
    public class GPSController : ApiController
    {
        private GPSRepository m_gpsRepository = new GPSRepository();

        [Profile]
        public IEnumerable<GpsTrackInfo> GetTop(int id)
        {
            return m_gpsRepository.SelectTopNRecords(id);
        } 
    }
}
